<script>
	export default {
		onLaunch: function() {
			if (uni.getStorageSync('phone') != '') {
				uni.navigateTo({
					url: '/pages/index/index'
				})
			}else{
				uni.navigateTo({
					url: '/pages/login/login'
				})
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	@import '@/common/uni.css';

	// 设置整个项目的背景色
	page {
		// background-color: #f5f5f5;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}


	@media screen and (min-width :1200px) {
		body {
			width: 30%;
			margin: 0 auto;
		}
	}
</style>